﻿using FreeSql.DataAnnotations;
using MicroApplication.Common.BaseModel;

namespace MicroApplication.Model.Business
{
    /// <summary>
    /// 客户信息表
    /// </summary>
    [Table(Name = "lt_customer")]
    public class CustomerEntity : Entity
    {
        ///<summary>
        ///客户名称
        ///</summary>
        [Column(StringLength = 50)]
        public string Name { get; set; }

        ///<summary>
        ///客户简称
        ///</summary>
        [Column(StringLength = 50)]
        public string SortName { get; set; }

        ///<summary>
        ///名称的拼音
        ///</summary>
        [Column(StringLength = 50)]
        public string PinYin { get; set; }

        ///<summary>
        ///联系人
        ///</summary>
        [Column(StringLength = 20)]
        public string Linkman { get; set; }

        ///<summary>
        ///联系电话
        ///</summary>
        [Column(StringLength = 20)]
        public string Phone { get; set; }

        ///<summary>
        ///联系地址
        ///</summary>
        [Column(StringLength = 100)]
        public string Address { get; set; }

        /// <summary>
        /// 客户类型
        /// </summary>
        public CustomerType Type { get; set; }

        /// <summary>
        /// 是否与公司签署协议
        /// </summary>
        public bool HasLisences { get; set; }
    }
}
